package com.note.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 更新笔记DTO
 */
@Data
@Schema(description = "更新笔记请求")
public class NoteUpdateDTO {
    
    @NotNull(message = "笔记ID不能为空")
    @Schema(description = "笔记ID", required = true, example = "1")
    private Long id;
    
    @Schema(description = "所属集合ID", example = "1")
    private Long collectionId;
    
    @Schema(description = "笔记标题", example = "Spring Boot学习笔记(已更新)")
    private String title;
    
    @Schema(description = "笔记内容(Markdown格式)", example = "# Spring Boot入门(已更新)\n\n这是我的学习笔记...")
    private String content;
    
    @Schema(description = "图片地址", example = "https://example.com/image.jpg")
    private String icon;
    
    @Schema(description = "表情符号", example = "📝")
    private String emoji;
    
    @Schema(description = "标签ID列表", example = "[1, 2, 3]")
    private List<Long> tagIds;
    
    @Schema(description = "是否公开 0-私有 1-公开", example = "0")
    private Integer isPublic;
} 